.class Lcom/estrongs/android/pop/app/log/q$i;
.super Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;
.source "LogManager.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/log/q;->i()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/log/q;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/log/q;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/log/q$i;->a:Lcom/estrongs/android/pop/app/log/q;

    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onScrolled(Landroidx/recyclerview/widget/RecyclerView;II)V
    .locals 0

    .line 1
    invoke-super {p0, p1, p2, p3}, Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;->onScrolled(Landroidx/recyclerview/widget/RecyclerView;II)V

    .line 2
    sget-boolean p1, Lcom/estrongs/android/pop/FexApplication;->q:Z

    if-eqz p1, :cond_1

    if-lez p3, :cond_1

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/log/q$i;->a:Lcom/estrongs/android/pop/app/log/q;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/log/q;->l(Lcom/estrongs/android/pop/app/log/q;)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-lez p1, :cond_1

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/log/q$i;->a:Lcom/estrongs/android/pop/app/log/q;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/log/q;->h(Lcom/estrongs/android/pop/app/log/q;)Landroidx/recyclerview/widget/RecyclerView;

    move-result-object p1

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getLayoutManager()Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

    move-result-object p1

    check-cast p1, Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-virtual {p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->findLastVisibleItemPosition()I

    move-result p1

    .line 5
    iget-object p2, p0, Lcom/estrongs/android/pop/app/log/q$i;->a:Lcom/estrongs/android/pop/app/log/q;

    invoke-static {p2}, Lcom/estrongs/android/pop/app/log/q;->h(Lcom/estrongs/android/pop/app/log/q;)Landroidx/recyclerview/widget/RecyclerView;

    move-result-object p2

    invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView;->getAdapter()Landroidx/recyclerview/widget/RecyclerView$Adapter;

    move-result-object p2

    invoke-virtual {p2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->getItemCount()I

    move-result p2

    .line 6
    iget-object p3, p0, Lcom/estrongs/android/pop/app/log/q$i;->a:Lcom/estrongs/android/pop/app/log/q;

    invoke-static {p3}, Lcom/estrongs/android/pop/app/log/q;->h(Lcom/estrongs/android/pop/app/log/q;)Landroidx/recyclerview/widget/RecyclerView;

    move-result-object p3

    invoke-virtual {p3}, Landroidx/recyclerview/widget/RecyclerView;->getAdapter()Landroidx/recyclerview/widget/RecyclerView$Adapter;

    move-result-object p3

    instance-of p3, p3, Lcom/estrongs/android/ui/homepage/HomeAdapter;

    if-eqz p3, :cond_0

    .line 7
    sget p3, Lcom/estrongs/android/ui/homepage/HomeAdapter;->l:I

    sub-int/2addr p2, p3

    .line 8
    :cond_0
    iget-object p3, p0, Lcom/estrongs/android/pop/app/log/q$i;->a:Lcom/estrongs/android/pop/app/log/q;

    invoke-static {p3}, Lcom/estrongs/android/pop/app/log/q;->s(Lcom/estrongs/android/pop/app/log/q;)Z

    move-result p3

    if-nez p3, :cond_1

    iget-object p3, p0, Lcom/estrongs/android/pop/app/log/q$i;->a:Lcom/estrongs/android/pop/app/log/q;

    invoke-static {p3}, Lcom/estrongs/android/pop/app/log/q;->a(Lcom/estrongs/android/pop/app/log/q;)Z

    move-result p3

    if-nez p3, :cond_1

    iget-object p3, p0, Lcom/estrongs/android/pop/app/log/q$i;->a:Lcom/estrongs/android/pop/app/log/q;

    invoke-static {p3}, Lcom/estrongs/android/pop/app/log/q;->i(Lcom/estrongs/android/pop/app/log/q;)Z

    move-result p3

    if-nez p3, :cond_1

    add-int/lit8 p2, p2, -0x2

    if-lt p1, p2, :cond_1

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/pop/app/log/q$i;->a:Lcom/estrongs/android/pop/app/log/q;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/log/q;->j(Lcom/estrongs/android/pop/app/log/q;)V

    :cond_1
    return-void
.end method
